import { getInterviewById } from "@/services/interview"
import { useState, useEffect } from "react";
import { Card } from "antd";
import style from "../interview.module.css"
export default function interviewDetail(props) {
    console.log('当前id是', props.id)
    const [interviewInfo, setInterviewInfo] = useState({})
    useEffect(() => {
        getInterviewById(props.id).then(res => {
            setInterviewInfo(res.data)
            console.log(res.data)
        })
    }, [])
    return (
        <>
            <Card
                title={interviewInfo.interviewTitle}
                
            >
               <div className={style.wrap} dangerouslySetInnerHTML={{__html:interviewInfo.interviewContent}}></div>
            </Card>
        </>
    )
}